package com.demo.applicationlistener.eventlistener.Halolistener;

import org.springframework.context.ApplicationListener;

import com.demo.applicationlistener.eventlistener.myevent.HaloEvent;

//@Component //独立监听 改为全局监听 
//位于com.demo.livemanagement.config.WebApplicationStartedEventListener
public class MyHaloEventListener implements ApplicationListener<HaloEvent> {

	@Override
	public void onApplicationEvent(HaloEvent event) {
		System.err.println("---------MyHaloEventListener:" + event);
	}

}
